package gjtx2;

import java.util.Scanner;

public class JobName {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        //StringBuffer sb=new StringBuffer();
        System.out.println("输入作业名：");
        String a=in.next();
       // System.out.println(a.length());
       // sb.append(a);
       // sb.reverse();
        String b="zip";
        String c="rar";
        if (a.indexOf(b,a.length()-3)>0){
           // System.out.println(a.lastIndexOf(b));
            System.out.println("合适！");
        }else if (a.indexOf(c,a.length()-3)>0){
            //System.out.println(a.indexOf(c));
            System.out.println("合适！");
        }else {
            System.out.println("不合适！");
        }
    }
}
